package com.kgc.sbt.mapper;

import com.kgc.sbt.domain.User;
import com.kgc.sbt.domain.UserExample;
import java.util.List;

import com.kgc.sbt.domain.UserTT;
import org.apache.ibatis.annotations.Param;

public interface UserMapper {
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    boolean insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPhoneNoAndPwd(UserExample example);

    User selectByPrimaryKey(Integer id);

    User selectByPhone(String phone);

    User selectByOpenid(String openid);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateById(UserTT record);

    int updateByPrimaryKey(User record);

    int updateOpenidByPhone(@Param("openid")String openid, @Param("phone")String phone);

    void updateWechatUnbind(String phone);

    User selectUserTTById(Integer id);

    UserTT selectPhoneInUser(String phone);
}